package com.example.hyznbk.model.api;

import com.example.hyznbk.service.HttpGetServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.Api.UserInfo;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by tangminglong on 17/8/11.
 */

public class BaseReviewWrongApi extends BaseApi{
    private String quesType;
    private int quesFrom;
    private int quesStatus;
    private int pageIndex;
    private int pageSize = 10;


    public String getQuesType() {
        return quesType;
    }

    public void setQuesType(String quesType) {
        this.quesType = quesType;
    }

    public int getQuesFrom() {
        return quesFrom;
    }

    public void setQuesFrom(int quesFrom) {
        this.quesFrom = quesFrom;
    }

    public int getQuesStatus() {
        return quesStatus;
    }

    public void setQuesStatus(int quesStatus) {
        this.quesStatus = quesStatus;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public BaseReviewWrongApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpGetServer httpGetServer = retrofit.create(HttpGetServer.class);
        return httpGetServer.getBaseReviewWrongItem(UserInfo.StuId,UserInfo.SubjectId,UserInfo.StageNo,
                quesType,quesFrom,quesStatus,pageIndex,pageSize);
    }
}
